package com.yswy.common.model;

/**
 * The return result for all REST service
 * @author benny
 *
 */
public class APPResult {

        /**
         *  1 : good
         *  0 : error
         */
        private int code;

        private String message;
        private Object data;


        public int getCode() {
                return code;
        }
        public void setCode(int code) {
                this.code = code;
        }
        public String getMessage() {
                return message;
        }
        public void setMessage(String message) {
                this.message = message;
        }
        public Object getData() {
                return data;
        }
        
		public void setData(Object data) {
                this.data = data;
        }


        public String toString() {
        	return "APPResult[ code: "+this.code+", message: "+this.message+", data: " + this.data +" ]";
        }
}